# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-enum
pkgver=0.4.7
pkgrel=3
pkgdesc='Robust enumerated type support in Python.'
url='http://pypi.python.org/pypi/enum/'
depends=('python2')
makedepends=('python2-setuptools')
license=('GPL2')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/enum-$pkgver.tar.gz")
sha512sums=('421eeead18ec1d1b98ec3bdb409f6cadcca086f723e114c9c867c93c1d4fe719afff12acd64400840d14c12e8eb5e63e0cbaed93197d84e49ec1381319c655f1')

build() {
  cd "enum-$pkgver"

  python2 setup.py build
}

package() {
  cd "enum-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

